package com.zz.cinema.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zz.cinema.domain.TS_Movie;
import com.zz.cinema.service.ITS_MovieService;
import com.zz.cinema.util.PageList;

@Controller
@RequestMapping("/movie")
public class TS_MovieController {
	
	@Resource
	private ITS_MovieService movieService;
//	@Resource
//	private ITS_CustomerService customerService;
	
	@ResponseBody
	@RequestMapping("/hot")
	public PageList<TS_Movie> getHot() {
		System.out.println(movieService.getHotMovies());
		return movieService.getHotMovies();
	}
}
